﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using SignalR;
using SignalR.Hubs;
using GiveMeMenu.Common.Command;

namespace GiveMeMenu.GMMHub
{
    public class GMMHub : Hub, IDisconnect
    {
        public Task SubscribeDish()
        {
            return Groups.Add(Context.ConnectionId, GroupValue.GroupDish);
        }

        #region IDisconnect Members

        public Task Disconnect()
        {
            Groups.Remove(Context.ConnectionId, GroupValue.GroupDish);
            return null;
        }

        #endregion
    }
}